package alexandria.dashboard.entity

class Story {
    int id
    String externalId
    String text
    String size
    String priority
    String deadline
    String status
    String phase
    Project project
    static belongsTo = Project
    static hasMany = [tasks :Task]


    static constraints = {
        externalId(nullable:false, blank:false, unique:true)
        text(nullable:false, blank:false)
        status(nullable:false, blank:false)
        project(nullable:true)
    }
}
